package com.woniuxy.ticketorder.service;

import com.woniuxy.ticketcommon.entity.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("TICKET-CINEMA")
public interface CinemaService {

    @GetMapping("/schedule/getPrice/{id}")
    public BigDecimal getPrice(@PathVariable("id") int id);

    @PutMapping("/seat/updateSeatStatus")
    public ResponseResult updateseatstatus(@RequestParam("ids") List<String> ids, @RequestParam("status") String status);
}
